import java.net.InetAddress;
import java.net.UnknownHostException;

/**
 * @Author liangzai
 * @Description:
 */
public class Test {
        public static void main(String[] args) throws Exception
        {
            try{
                InetAddress localAddress = InetAddress.getLocalHost();
                System.out.println(localAddress);
            }
            catch (UnknownHostException el){
                el.printStackTrace();
            }

        }

}
